Autoformatting javascript in monitoring app