Loading script to device