Remove some defaults from js snippets