adjusted JS