addOption fix for select boxes

Fixed for in loop in addOption for use with a prototype based library. Added a hasOwnProperty qualifier to avoid adding the array's prototyped properties to the selectbox