built js and removed log stmt