added JS functions
Merge branch 'master' of github.com:HK-WDI-November-2014/javascript-exercises