js 9 various funcions