Fixed javascript call on head