move all javascripts libs to endpage
[fix] bad variable name and get_js_libraries behavior with empty folder