made javascript external