var function perhaps not working on simplyjs?