fix angular js error when divided into folders