small fix on javascript load