re-structure dir and implement angular HTTP request