added the package and updated js to snippets