public script cleanup
formatting
Merge pull request #45 from wturyn/public-javascript-cleanup

Public javascript cleanup