Fixed some function naming erros and changed the jquerry call at the end of createRobotDiv to a normal js call