Fixed issue with script type

Fixes a small bug that prevented the script to load