improved library to allow  concatenated and minified