some useful js