Fix the js error - some problem when using minified angular