Added simple autoloading of js resource based on namespace