Update Initializer.java

Add function to throw categories into javascript file