removed extra js code from doc ready