first draft for the js