initial implementation of javascript files