Update mainWhite.js

Remove php, use direct REST call
Merge pull request #1 from linsolas/patch-1

Update mainWhite.js