Build and load JS script file