removed script file loading, now uses require