f it -- added jquery for browser compatibility and simplicity; fixed firefox bug; fixed inputs bug