Generate random Javascript code and eval