fixing js reference
commented out unused template code