update links and use js for header file