Add javascript snippets
Move feature snippet out of feature mode