npm and minified support

Added npm support (needed to specific main entry js file)
Added minified support (Wrapped function in array listing dependencies)