moved javascript code (on dom ready) from template-buddypress.php to library/assets/js/buddypress.js (load depends jquery) issue #63