BuddyPress: Enqueueing a Script On BuddyPress Page?

Ok can I do it with if ( (bp_is_my_profile() .... or some variation of that?
Also, how could I use the above conditional to register / enqueue a script for the buddypress profile page?
Something like this perhaps (although the below code does not work):

function buddypress_profile_layout() {
global $theLayout;
if ( bp_is_my_profile() ) : {
wp_register_script( 'buddypress-profile-layout', 'http://dreamfirehub.com/wp-content/themes/parallelus-mingle/my-jquery/buddypress-profile-layout.js', array('jquery'), '1.0', true);
wp_enqueue_script( 'buddypress-profile-layout' );
 } endif;
}
add_filter('wp_enqueue_scripts', 'buddypress_profile_layout');