after setting javascript resources