update formats
beautify the code using jshint's fixmyjs