create basic js action