Improved formatting for javascript blocks