Event start and end as config directives; JS improvement
Beautify JSON config
Load JS only if needed