Well..Its more of a javascript learning exercise..