add getData function
move hidden class from js to html