Adding jasmine tests and java script for client side validation.