add some js snippets
add some global snippets