removed localhost from javascript