pulled out some javascrpit