javascript refactoring, meta section