Select Tools -> Options.... Select the Content button at top. Check the box adjacent to Enable JavaScript and press OK.