Simple player controller object built in javascript for practice.