javascript inline and external