added javascript url check