Add angular js and restructure application