perfect requirejs optimization during 'grunt build'

involved installing a bunch of missing modules before 'grunt build'
would succeed.