JavaScript style fixes
Rename userid to userId for consistency
WIP