add object oriented javascript test file