Javascript Code Generator