fix js module to use proper require