Use this as the guid to your javascript fruit farm. 

Only refer to my version if you're completely stuck. Feel free to send a pull request with your version if you'd like comments or show off your stuff.