added javascript to js files