Wrapped all js files in functions to make concatenation possible