.Net style formatting for javascript