Mechanical Engineering Basic Problems In Javascript Object Methods