Polish javascript