Fix missing javascript methods on IE