Fixed double "document ready" declaration in JQuery code