Javascript execution utility