Specify syntax for codeblocks

Just added javascript syntax to all JS examples.