added renderScript method
now component is rendered without script