public/js structure