put js internally in  header.html and removed inline js from almapost