Fix javascript in profile