add support for versions
add script hoisting to avoid conflicts with usemin