added offline caching and reading js file into textarea