integrates first bit of JS