First draft developed in angular js