removed ajax calls to use js templates
bug fixes

• check to make sure data is defined before running $.each
• update file pathing for images to always be absolute