updated the method for generating cache.manifest
updated the logic for appcache
simply zIndex calcualtion