fix ReferenceError in browsers

Signed-off-by: Dmitry Kryuchkov <xelibrion@gmail.com>
Merge pull request #476 from xelibrion/master

Common JS package manager support breaks ui-router in browsers