Moved fun.js to nor-function