More minor fixes to js primer