Fix javascript snarl