fixing js references