basic js tools