trimmed javscript startup