Added feature: put javascript into the HEAD