Fixed deprecated script

WebStorm helped me fix deprecated script.