moved inline javascript to general folder