[components] allow to omit 2nd arg in authorizedToJSON
[readme] add javascript highlighting