adding javascript functionality on users page