preparing js