Fixed bug in crails.js
Fixed JSON formatting
Fixed mimetype for javascript files in fileutils.cpp