Had to add js to make it work on server