fixed weird JavaScript dependency