fixing js reference