You can't just make this swap. One if for HTML and one is for Java.