add javascript formatting to readme examples