* chore: add precommit hook for testing code style * chore: use prettier + eslint for js code
Less jQuery, more Web API. Moved main() away from common.