moved site components to javascript