added flog and falert to exec context, worked on test.html