fixed typos / document ready issues