A simple javascript control for a ball