Re-write script tag loader in ruby using Native