Added platform.js for testing which platform is running.