its simpler from javascript