Creating form, php, and javascript to run calculations