#moved js content to js files