fixed build eror
added website buttons
abstracted some js functions