ability to set a different than '.js' extension

Added ability to set a different than '.js' extension