I just posted an answer to another question about how to do it.
In your case, assuming you used body_class()
in your theme, your home page should have a <body>
with class home
to it.
So in your JS, you can:
if( $('body.home').length ){
// Do stuff
}