plugin refactoring
refactoring
requirejs integration