load JS via ResourceLoader