working ahead

commenting the javascript, and error tracking