Fixed bug in individual profile view
Put all javascript in one load