create base javascript framework