moved javascripts to public directory and added js logging structure. closes #51