added main java script