Added platform.js - fixed integration issues