Jjavascriptfix

fixes broken javascript