Adding platform.js script at the top of the page