made config easier, tweaked js