eval() di Javascript dovrebbe bastare