Cleaning up the modifications to the angular boostrap function.