Create Gravity.js

This test demonstrates how Gravity can be coded using JavaScript.