Fixed bug with not working javascript.