move script to header cause it cause error when is inside the body..