use pure js and java function library (not optimized)