WIP main js