Modified platform.js according to Ticket #1290 note from Cricket.