Adding js-functionscode