Fix javacsript snipplet