Wrapped js in .ready()
Partially refactored to support scripts that may be added later
(minor) fix indentation
Refactored to support adding more scripts
refactored sanetype.js into module pattern
linted javascript