proper config for angular js