rename to webappfix; clean javascript scoping