moved pm_rating js to global js
moved pages to ajax views