moved javascript to min.'s