added inertia
added js