added js good parts