Finally gets things working (by calling $(document).ready inside the page) and updates docs