rename .njs as .js file is present