javascript: added more primitives