fix js depencies in pagelet not loaded issue