Load data from javascript