Update platform.js

Wrapping functions in parens