from javascript to js