Remove try from javascript initialization