correct variable in javascript flash