Attempt to fix javascript (again)