Getting angular app to initialize correctly