trying to get java script working