put graphics where they belong, added bones of the js file