after_new_fun javascript function also takes data hash as an argument.