[Shridhar] - js formatting
[Shridhar] - Added jasmine specs.
[Shridhar] - Added support for null value