Change JS loading method