Fixes #197 hopefully.

Unable to replicate locally but requirejs is not complaining about the code I've added so nothing is broken by this (tested by running with grunt and using buddycloud.org to log in).

Potentially fixes #202 as well.