Fixed coding-style issues

Added tools/gjslint.sh for checking coding-style conformance.

Fixed violations found.