updated some jScript