add javascript completion and modify snippets