apply syntax highlight

It is proper way to create custom-event. but cannot think a good name. 
if you offer a dom-loaded event, i will send another PR.