there are some  basic js functions