Automatize source formatting for JavaScript files - Fixes #2