Used OO javscript and Jasmine testing