add a bit of js, still WIP