added note about dependency to registerJsFile

Fixes #373