added javascript for comments and initialization