Fixes #1706: Added support for registering a single JS/CSS file with dependency