add support for javascript inclusion via require