moving cjs inside js