offline file angularJs