Fixed Javascript Err