updating project structure
use umd for definition
move all functionality into a single file