Fixed loading issues, defining functions twice.

- We no longr define - getPosition twice.
- Apparently app.js must be loaded before all else?