create scriptcontroller