javascript function generator

use php to generrate js function.