cleaned up some JS in freshcat theme; getPageDetails() now returns array