Trim trailing white spaces
Added use strict
Added missing semicolons
Fixed 'jsonresponse' used out of scope
Merge pull request #3 from dreyacosta/master

Updated with some best practices