create javascript framework