apple and javascripts