Fix for #318

Replaced jquery.placeholder.js with https://github.com/mathiasbynens/jquery-placeholder and jquery.snippet.js with codemirror from http://codemirror.net