big javascript updates to profile