create basic js procedures to be used later