JS optimization and added skel for unit testing