Minor js code refactoring
Added Permits Agent and documentation
Re-minified code and applied to demo