Adding angular to the project
Converting the old js file to angular