Code format cleaning

The code formatting was suffering an identity crises, so I picked a common format for jQuery and used that (tabs, spacing, {} etc) ... 

Signed-off-by:Spuds <Spuds@192.168.1.125>