made some basic changes to the codesnippet.js