Optimized script slightly. Now comparing strings instead of converting strings to numeric values. Added horrid hack.