fix javascript snippets thing
wip