Fix for #352
Added client side validation.
Formatting javascript.
Merge branch '#352' into azure