JS-code moved in separate file