WIP Added some javascript code