platform js injection