changed file structure and edited js file

used spec runner framework, edited methods in robot.js. Tested .js file using test specs provided by original creator.