modified header to include all required javascript stuff